package com.port.eleport.model.biz;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import com.port.eleport.model.base.IdEntity;

/**
 *  优惠
 * @author jameschen
 *
 */
@Entity
@Table(name = "biz_privi", schema = "")
@DynamicInsert(true)
@DynamicUpdate(true)
public class TPrivi extends IdEntity {
	
	/**
	 * 优惠金额
	 */
	@Column(name="pro_amount")
	private BigDecimal proAmount;
	
	/**
	 * 优惠说明
	 */
	@Column(name="pro_remark")
	private String proRemark;
	
	/**
	 * 订单
	 */
	@ManyToOne
	@JoinColumn(name="order_id")
	private TOrder order;

	public BigDecimal getProAmount() {
		return proAmount;
	}

	public void setProAmount(BigDecimal proAmount) {
		this.proAmount = proAmount;
	}

	public String getProRemark() {
		return proRemark;
	}

	public void setProRemark(String proRemark) {
		this.proRemark = proRemark;
	}

	public TOrder getOrder() {
		return order;
	}

	public void setOrder(TOrder order) {
		this.order = order;
	}
	
	
}
